<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>js---函数使用</title>
</head>
<body>

<script type="text/javascript">
	
		var a=10;
		var b=20;
		document.write(a+b);


		var c=add(10,23);
		alert(c);



		function add(a,b){
           return a+b;
		}


		function adds(a,b){
		   alert(a+b);
		}


		function student(name,age){
			alert('你好'+name+",我的年龄是："+age);
		}

</script>

<button onclick="adds(44,55)">44+55</button>
<button onclick="student('斌丰',68)">keis</button>
	
</body>
</html>